package com.jiangjiang.eshop.schedule.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @ClassName GoodsAllocationStockDO
 * @Description TODO
 * @Author jhw
 * @Date 2021/8/26 22:09
 * @Version 1.0
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("schedule_goods_allocation_stock")
public class GoodsAllocationStockEntity {
    /**
     * id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    /**
     * 货位id
     */
    @TableField("goods_allocation_id")
    private Long goodsAllocationId;
    /**
     * 商品sku id
     */
    @TableField("goods_sku_id")
    private Long goodsSkuId;
    /**
     * 可用库存
     */
    @TableField("available_stock_quantity")
    private Long availableStockQuantity;
    /**
     * 锁定库存
     */
    @TableField("locked_stock_quantity")
    private Long lockedStockQuantity;
    /**
     * 已出库库存
     */
    @TableField("output_stock_quantity")
    private Long outputStockQuantity;
    /**
     * 创建时间
     */
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    private Date gmtCreate;
    /**
     * 修改时间
     */
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE )
    private Date gmtModified;
}
